package com.ltxtiyu.video.dao.ltx;

import com.ltxtiyu.video.entity.User;
import com.ltxtiyu.video.entity.UserFollow;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserFollowDao {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(UserFollow record);

    UserFollow selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserFollow record);

    Integer selectFocusCount(Integer userId);

    Integer selectFollowerCount(Integer userId);

    List<UserFollow> selectHasFollow(Map<String, Object> map);

    List<User> selectFocusList(Map<String, Object> map);

    List<User> selectFollowerList(Map<String, Object> map);
}